<?php

class LanguageModule extends CWebModule
{
    public $defaultController='Lang';
    public function init()
    {
        $this->viewPath = Yii::getPathOfAlias('theme.views.modules.LanguageModule');
        $this->setImport(array(
                'language.models.*',
                'language.components.*',
        ));
    }

    public function beforeControllerAction($controller, $action)
    {
        if(parent::beforeControllerAction($controller, $action))
        {
                return true;
        }
        else
                return false;
    }
}